﻿// =================================================================== 
// 项目说明
//====================================================================
// SunCity@Copy Right 2006-2008
// 文件： UserInfo.cs
// 项目名称：
// 创建时间：2015/3/18
// 负责人：
// ===================================================================
using System;
namespace EMS20.Entity
{
	/// <summary>
	///UserInfo数据实体
	/// </summary>
	[Serializable]
	public class UserInfoEntity
	{
		#region 变量定义
		///<summary>
		///自增ID
		///</summary>
		private int _user_id;
		///<summary>
		///用户名
		///</summary>
		private string _u_name = String.Empty;
		///<summary>
		///用户密码(MD5)
		///</summary>
		private string _u_pwd = String.Empty;
		///<summary>
		///真实姓名
		///</summary>
		private string _real_name = String.Empty;
		///<summary>
		///联系电话
		///</summary>
		private string _u_telephone = String.Empty;
		///<summary>
		///邮箱
		///</summary>
		private string _u_email = String.Empty;
		///<summary>
		///1:禁用 0：启用
		///</summary>
		private int _u_is_lock;
		///<summary>
		///添加时间
		///</summary>
		private DateTime _u_add_time = Convert.ToDateTime("1900 - 1 - 1");
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public UserInfoEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public UserInfoEntity
		(
			int user_id,
			string u_name,
			string u_pwd,
			string real_name,
			string u_telephone,
			string u_email,
			int u_is_lock,
			DateTime u_add_time
		)
		{
			_user_id     = user_id;
			_u_name      = u_name;
			_u_pwd       = u_pwd;
			_real_name   = real_name;
			_u_telephone = u_telephone;
			_u_email     = u_email;
			_u_is_lock   = u_is_lock;
			_u_add_time  = u_add_time;
			
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///自增ID
		///</summary>
		public int user_id
		{
			get {return _user_id;}
			set {_user_id = value;}
		}

		///<summary>
		///用户名
		///</summary>
		public string u_name
		{
			get {return _u_name;}
			set {_u_name = value;}
		}

		///<summary>
		///用户密码(MD5)
		///</summary>
		public string u_pwd
		{
			get {return _u_pwd;}
			set {_u_pwd = value;}
		}

		///<summary>
		///真实姓名
		///</summary>
		public string real_name
		{
			get {return _real_name;}
			set {_real_name = value;}
		}

		///<summary>
		///联系电话
		///</summary>
		public string u_telephone
		{
			get {return _u_telephone;}
			set {_u_telephone = value;}
		}

		///<summary>
		///邮箱
		///</summary>
		public string u_email
		{
			get {return _u_email;}
			set {_u_email = value;}
		}

		///<summary>
		///1:禁用 0：启用
		///</summary>
		public int u_is_lock
		{
			get {return _u_is_lock;}
			set {_u_is_lock = value;}
		}

		///<summary>
		///添加时间
		///</summary>
		public DateTime u_add_time
		{
			get {return _u_add_time;}
			set {_u_add_time = value;}
		}
	
		#endregion
		
	}
}
